﻿@model LView.CMS.Models.LMSManager
@using Microsoft.AspNetCore.Mvc.Localization
@inject IViewLocalizer Localizer
@{
    ViewData["Title"] = "个人信息";
}
<form class="layui-form layui-row">
    <div class="layui-col-md3 layui-col-xs12 user_right">
        <div class="layui-upload-list">
            <img src="@Model.Avatar" class="layui-upload-img layui-circle userFaceBtn userAvatar" id="userFace">
        </div>
        <button type="button" class="layui-btn layui-btn-primary userFaceBtn"><i class="layui-icon">&#xe67c;</i> @Localizer["Memo"]</button>
        @Html.Hidden("Avatar", Model.Avatar)
        @Html.Hidden("Id", Model.Id)
        @Html.AntiForgeryToken()
    </div>
    <div class="layui-col-md6 layui-col-xs12">
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">@Localizer["Account"]</label>
            <div class="layui-input-block">
                <input type="text" value="@Model.UserName" name="UserName" ,id="UserName" disabled class="layui-input layui-disabled">
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">@Localizer["Role"]</label>
            <div class="layui-input-block">
                <input type="text" value="@Model.RoleName" name="RoleName" id="RoleName" disabled class="layui-input layui-disabled">
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">@Localizer["Name"]</label>
            <div class="layui-input-block">
                <input type="text" value="@Model.NickName" name="NickName" id="NickName" placeholder="@Localizer["NamePlaceholder"]" lay-verify="required" class="layui-input realName">
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">@Localizer["Phone"]</label>
            <div class="layui-input-block">
                <input type="tel" value="@Model.Mobile" name="Mobile" id="Mobile" placeholder="@Localizer["PhonePlaceholder"]" class="layui-input userPhone">
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">@Localizer["Email"]</label>
            <div class="layui-input-block">
                <input type="tel" value="@Model.Email" name="Email" id="Email" placeholder="@Localizer["EmailPlaceholder"]" class="layui-input userPhone">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">@Localizer["Remark"]</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" name="Remark" id="Remark" class="layui-textarea myself">@Model.Remark</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="changeManager">@Localizer["Submit"]</button>
                <button type="reset" class="layui-btn layui-btn-primary">@Localizer["Reset"]</button>
            </div>
        </div>
    </div>
</form>
@section Scripts{
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/manager/managerInfo.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
